#@author: liu Chanchan
#The code is my own work.
import sys

# Read input from user and split into individual string elements
input_strings = input().split()

# Check if no numbers were entered
if not input_strings:
    sys.exit("Error: no numbers provided")

# Convert each string to a float to form the list of values
try:
    values = [float(s) for s in input_strings]
except ValueError:
   sys.exit("Error: invalid number format")

#Sort the list
sorted_values = sorted(values)
n = len(values)

#Find the maximum value and the minimun value
max_value = sorted_values[-1]
min_value = sorted_values[0]

#Find the mean value
mean_value = sum(sorted_values) / n

#Find the median value
if n % 2 == 1:
    # Odd number of elements: middle element is the median
    median_value = sorted_values[n // 2]
else:
    # Even number of elements: average of the two middle elements
    mid1 = sorted_values[(n // 2) - 1]
    mid2 = sorted_values[n // 2]
    median_value = (mid1 + mid2) / 2

# Print all statistics in the required single-line format
print(f"Minimum = {min_value} Maximum = {max_value} Mean    = {mean_value} Median  = {median_value}")